package com.carkeeper.serve.service;


import com.carkeeper.entity.Result;
import com.carkeeper.pojo.KnowledgeBaseInfo;

import java.util.List;
import java.util.Map;

public interface KnowledgeService {



    /**
     * 批量导入
     * @return
     */
    public Result<String> batchSingleAddES();


    /**
     * showAllKnowledge
     * @return
     */
    public Result<List<KnowledgeBaseInfo>> showAllKnowledge(Map<String,String> map,String currentPage,String pageSize);


    /**
     * 查询全部分类
     * @return
     */
    public Result<Map<String, List<String>>> findCategory(Map<String,String> map);


    /**
     * 查询全部分类
     * @param knowledgeBaseInfo
     * @return
     */
    public Result addKnowledgeBaseInfo(KnowledgeBaseInfo knowledgeBaseInfo);


    /**
     * 更新推文
     * @param knowledgeBaseInfo
     * @return
     */
    public Result update(KnowledgeBaseInfo knowledgeBaseInfo);


    /**
     * 删除
     * @param id
     * @return
     */
    public Result delete(Long id);


    /**
     * 根据分类查询知识库
     * @param id
     * @return
     */
    public Result<List<KnowledgeBaseInfo>> findKnowledgeByCategory(String id);
}
